package club.zbiao.modules.system.service.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.sql.Timestamp;
import java.util.List;
import java.util.Set;

/**
 * @author jie
 * @date 2019-03-25
 */
@Data
public class DeptDTO extends BaseDTO {

    Set<Long> deptIds;
    /**
     * 名称
     */
    private String name;
    @NotNull
    private Boolean enabled;
    /**
     * 上级部门
     */
    private Long pid;
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<DeptDTO> children;

}